package com.fanco.learn_datastruct_leetcode.designpattern.facade;

/**
 * @author qiaowang 2022/2/15
 * 描述
 */
public class DvdPlayer {
    // 使用单例模式
    private static DvdPlayer instance = new DvdPlayer();

    public static DvdPlayer getInstance() {
        return instance;
    }

    private DvdPlayer () {}

    public void on () {
        System.out.println("打开 DVD");
    }

    public void off () {
        System.out.println("关闭 DVD");
    }

    public void play () {
        System.out.println("DVD is playing");
    }

    public void pause () {
        System.out.println("DVD is pause...");
    }
}
